package com.zbkj.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 配送员表
 * </p>
 *
 * @author keNan
 * @since 2025-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_delivery_personnel")
@ApiModel(value = "DeliveryPersonnel对象", description = "配送员表")
public class DeliveryPersonnel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "配送员id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "配送员名称")
    private String deliveryPersonnelName;

    @ApiModelProperty(value = "配送员手机号(账号)")
    private String deliveryPersonnelPhone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份证号码")
    private String idNumber;

    @ApiModelProperty(value = "身份证正面")
    private String frontOfIdCard;

    @ApiModelProperty(value = "身份证背面")
    private String backOfIdCard;

    @ApiModelProperty(value = "是否长期有效(0不是  1是)")
    private Integer isLongTerm;

    @ApiModelProperty(value = "身份证有效期")
    private String validityPeriodOfIdCard;

    @ApiModelProperty(value = "性别(1:男  0:女  2:未知)")
    private Integer sex;

    @ApiModelProperty(value = "归属门店id")
    private Integer saleRoomId;

    @ApiModelProperty(value = "车牌号")
    private String licensePlateNumber;

    @ApiModelProperty(value = "是否被禁用（1未禁用  0已禁用）")
    private Integer isDisable;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    @ApiModelProperty(value = "归属门店名称")
    @TableField(exist = false)
    private String saleRoomName;
}
